<style type="text/css">
.danxuan .active span{ background-color:#39f;}
.danxuan div span{width: 100%;height: 100%;border-radius: 50%;display: block; background: #999999;}
.danxuan div{width: 12px;height: 12px;border-radius: 50%;overflow: hidden;border: 1px #ddd solid;float: left;margin-right: 10px;margin-top: 6px;padding: 3px;cursor: pointer;}
</style>
<div class="loading_bg" style="z-index: 999" ng-click="onClose()">
</div>
<div class="new_target_windows">
    <div class="ntw_content">
        <div class="title">
            <h1>
                分配人群</h1>
            <div class="close" ng-click="onClose()">
                <span>+</span></div>
            <div class="clear">
            </div>
        </div>
         <ul class="ulzu">
         <li>
                <span><svg class="icon" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-intro"></use></svg>问卷标题：{{itemObj.title}}</span>
            </li>
            <li>
                <span><svg class="icon" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-qiapianmoshi"></use></svg>问卷类型：{{itemObj.questionnaireType==0?'普通调查':(itemObj.questionnaireType==1?'评估':(itemObj.questionnaireType==2?'测评':'未知'))}}</span>
            </li>
            <!-- <li>
                <span><svg class="icon" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-yulan2"></use></svg>使用模式：  
                    <div style="float: right; margin-left: 10px;">
                            <div style="width: 100px;float:  left;" class="danxuan">
                                    <div ng-class="{active:type==1}" ng-click="checkedType(1)"> 
                                            <span></span>
								    </div>
                                    <span>普通分配</span>
                            </div>
                            <div style="width: 100px;float:  left;" class="danxuan">
                                    <div ng-class="{active:type==3}" ng-click="checkedType(3)"> 
                                            <span></span>
								    </div>
                                    <span>领导打分</span>
                            </div>
                        </div>
                </span>
            </li> -->
         </ul>
        <!-- 培训人群 -->
        <ul class="ulzu">
            <li><span><i class="iconfont">&#xe6e7;</i>参与人群：</span> <span class="lirbtn">
                全员参与<div class="toggle" style="float: right;margin-left: 10px;margin-top: 5px;">
                    <input class="notificationHandler check" ng-class="{checked:addParams.isPublic}" ng-click="checkedStuParticipate()"
                        data-type="newpost.email" type="button">
                    <div class="switch">
                    </div>
                    <div class="track">
                    </div>
                </div>

            </span></li>
            <!--人员选择器-->
            <selectormodal ng-if="stuData.ApiOpen" apidata="stuData"></selectormodal>
            <!--用户-->
            <li ng-repeat="userItem in stuData.UserList">
                <span><svg class="icon" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-user"></use></svg>【用户】{{userItem.user_Name}}</span>
                    <span class="lirbtn" ng-click="delStu(userItem,'1');$event.stopPropagation();"><i class="iconfont  add link" >&#xe636;</i></span>   
            </li>
            <!--组织机构-->
            <li ng-repeat="orgItem in stuData.userOrgList">
                <span><svg class="icon" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-zuzhijiagou"></use></svg>【组织架构】{{orgItem.organization_Name}}</span>
                    <span class="lirbtn" ng-click="delStu(orgItem,'2');$event.stopPropagation();"><i class="iconfont  add link" >&#xe636;</i></span>  
            </li>
            <!--角色-->
            <li ng-repeat="roleItem in stuData.userRoleList">
                <span><svg class="icon" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-jiaose"></use></svg>【角色】{{roleItem.roles_Name}} </span>
                    <span class="lirbtn" ng-click="delStu(roleItem,'3');$event.stopPropagation();"><i class="iconfont  add link" >&#xe636;</i></span>  
            </li>
            <!--用户组-->
            <li ng-repeat="groupItem in stuData.userGroupList">
                <span><svg class="icon" aria-hidden="true"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-louyutubiaoyonghuzu"></use></svg>【用户组】{{groupItem.userGroup_Name}} </span>
                    <span class="lirbtn" ng-click="delStu(groupItem,'4');$event.stopPropagation();"><i class="iconfont  add link" >&#xe636;</i></span>  
            </li>
            <!-- 添加人群 -->
            <li ng-if="!addParams.isPublic">
                <div class="btn add link" ng-click="selTaskStu($event)">
                    <i class="iconfont">&#xe616;</i>选择人群</div>
            </li>
        </ul>
        <ul class="ulzu">
        <li><span><i class="iconfont">&#xe63a;</i>调查时间：</span> 
            <div class="knowledgebase_trainingplan_dropdown_xztime" style="width:370px;">
                <!--周期-->
                <div class="knowledgebase_trainingplan_dropdown_xztime_date" ng-if="addParams.dateFormate == '1'">
                    <!--开始日期-->
                    <input type="text" ng-model="addParams.startTime" id="startTime" class="xiaoge"
                        placeholder="开始日期" onclick="wdatepicker({dateFmt:'yyyy-MM-dd HH:mm:ss',highLineWeekDay:true})" ng-focus="GetDate()"
                        onfocus="var endTime=$dp.$('endTime');wdatepicker({dateFmt:'yyyy-MM-dd HH:mm:ss',onpicked:function(){endTime.focus();},maxDate:'#F{$dp.$D(\'endTime\')}'})"
                        style="width:135px;"/>
                    <ac style="color:#666">至</ac>
                    <!--截止日期-->
                    <input type="text" ng-model="addParams.endTime" class="xiaoge" id="endTime"
                        placeholder="截止日期" onclick="wdatepicker()" ng-focus="GetDate()" onfocus="wdatepicker({dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'#F{$dp.$D(\'startTime\')}'})"
                        style="width:135px;"/>                                                                       
                </div>                               
            </div> 
             <!--选择类型  -->                                                                                                                
            <span class="lirbtn" ng-click="trainTaskAddEidtDrapDownIsShow = true" ng-mouseleave="trainTaskAddEidtDrapDownIsShow = false">
                {{ taskObj.date_formate == '1' ? '固定周期' : (taskObj.date_formate
                == '2' ? '固定天数' : '不限制') }}   
               <span class="caret"></span>
               <ul ng-show="trainTaskAddEidtDrapDownIsShow" 
                    style="border-radius: 3px;position: absolute;right:5px;bottom:30px; width: 86px;background: #fff;border: 1px solid #ddd;box-shadow: 0 7px 21px rgba(0,0,0,0.1);"> 
                    <li class="traintask_top_pxjd_all" ng-click="setDateType('0')">                                            
                        不限制</li>
                    <li class="traintask_top_pxjd_wks" ng-click="setDateType('1')">                                            
                        固定周期</li>                                                                                            
                </ul>          
            </span> 
           </li>
        </ul>
        <!-- 培训内容 -->
        <!--知识选择器开始-->
        <knowledge-selector know-config="knowConfig" ng-if="knowConfig.isShow" on-callback="onCallback()"></knowledge-selector>
        
        
    </div>
    <div class="ntw_footer">
        <div class="new_curriculum_bottom_right">
            <div ng-if="isSaveBtn" class="btn">
                <btnloading isbtnload="isSaveBtn"></btnloading>
            </div>
            <div class="btn queding" style="width: 100px;"  ng-click="btnSave()" ng-if="!isSaveBtn">                
                <span class="ng-scope"><i class="iconfont">&#xe6ee;</i> 确定保存</span>
            </div>
        </div>
    </div>
</div>
